home *** CD-ROM | disk | FTP | other *** search
/ Go Ronald / Go Ronald Voice Interactive CD.iso / Data1.cab / _8D088414393A4AB0BB2239714C0C0C0B / scripts / DefineSprite_309 / frame_29 / DoAction.as < prev   
Text File  |  2005-08-05  |  548b  |  17 lines

  1. _parent.Timer._visible = true;
  2. this.createEmptyMovieClip("fx_mc",this.getNextHighestDepth);
  3. var feedback_snd = new Sound("fx_mc");
  4. var randsnd_arr = new Array("nicerun","faster","tryagain");
  5. if(_parent.Timer.Minutes < 1 || _parent.Timer.Minutes == 1 && _parent.Timer.Seconds <= 10)
  6. {
  7.    feedback_snd.attachSound("perfect");
  8. }
  9. else
  10. {
  11.    r = Math.round(Math.random() * 2);
  12.    mApplication.trace("sorry kiddo, randsnd_arr[r] = " + r + " " + randsnd_arr[r]);
  13.    feedback_snd.attachSound(randsnd_arr[r]);
  14. }
  15. feedback_snd.start();
  16. stop();
  17.